[VMX] Remove vcpu->arch.hvm_vmx.cpu_state
authorTim Deegan <tim.deegan@xensource.com>
Thu, 5 Oct 2006 15:21:39 +0000 (16:21 +0100)
committerTim Deegan <tim.deegan@xensource.com>
Thu, 5 Oct 2006 15:21:39 +0000 (16:21 +0100)
commit92bc3792bbdda655aec173c68cb77068a3a464a9
treed5f354c1b1d387d9a0f3f4147fc029760ad34e65
parentad8133283375190c40adfb8025e51279d64a1b7e
[VMX] Remove vcpu->arch.hvm_vmx.cpu_state

The flags in hvm_vmx.cpu_state were shadows of shadows of bits in
guest CR0_READ_SHADOW, CR4_READ_SHADOW and EFER, and were not being
kept in sync with the other shadows if changes were made while
running under vmxassist.  Just use the full shadows of those control
regs instead, and replace cpu_state with a single vmxassist flag.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/hvm/vmx/vmx.h